- name: make the app be real
  hosts: os-masters-stg[0]
  user: root
  gather_facts: False

  vars_files:
    - /srv/web/infra/ansible/vars/global.yml
    - "/srv/private/ansible/vars.yml"
    - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml

  roles:
  - role: openshift/project
    app: modernpaste
    description: modernpaste
    appowners:
    - codeblock
  - { role: openshift/object, vars: {app: modernpaste, file: imagestream.yml }}
  - { role: openshift/object, vars: {app: modernpaste, template: secret.yml }}
  - { role: openshift/object, vars: {app: modernpaste, file: buildconfig.yml }}
  - { role: openshift/start-build, vars: {app: modernpaste, name: modernpaste-docker-build }}
  - { role: openshift/object, vars: {app: modernpaste, template: configmap.yml }}
  - { role: openshift/object, vars: {app: modernpaste, file: service.yml }}
  - { role: openshift/object, vars: {app: modernpaste, file: route.yml }}
  - { role: openshift/object, vars: {app: modernpaste, file: deploymentconfig.yml }}
  - { role: openshift/rollout, vars: {app: modernpaste, name: modernpaste-web }}
